package com.ms.game.lobby.db;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xpec.c4.db.model.basic.BasicModel;

@Entity
@org.hibernate.annotations.Entity(dynamicInsert=true,dynamicUpdate=true)
@Table(name = "game_list_while")
public class LobbyGameListWhileModel extends BasicModel
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -2952130621900331540L;

	private int id;
	
	private String playerid;
	
	private boolean deny;

	private String allowlist;
	
	private String allowicons;
	
	private long expired;
	
	private Date eventTime;
	
	private Date createTime;
	
	/**
	 * 對應狀態開啟
	 * @return
	 */
	public String getAllowicons() {
		return allowicons;
	}

	public void setAllowicons(String allowicons) {
		this.allowicons = allowicons;
	}
	
	/**
	 * 過期時間
	 * @return
	 */
	public long getExpired() {
		return expired;
	}

	public void setExpired(long expired) {
		this.expired = expired;
	}
	
	/**
	 * 更新時間
	 * @return
	 */
	public Date getEventTime() {
		return eventTime;
	}

	public void setEventTime(Date eventTime) {
		this.eventTime = eventTime;
	}

	/**
	 * 創建時間
	 * @return
	 */
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	/**
	 * 是否被禁用
	 * @return
	 */
	public boolean isDeny() {
		return deny;
	}

	public void setDeny(boolean deny) {
		this.deny = deny;
	}

	/**
	 * 流水號
	 * @return
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	/**
	 * 玩家角色playerid
	 * @return
	 */
	@Column(columnDefinition="VARCHAR(50)")
	public String getPlayerid() {
		return playerid;
	}

	public void setPlayerid(String playerid) {
		this.playerid = playerid;
	}

	/**
	 * 遊戲白名單
	 * @return
	 */
	@Column(columnDefinition="VARCHAR(1024)")
	public String getAllowlist() {
		return allowlist;
	}

	public void setAllowlist(String allowlist) {
		this.allowlist = allowlist;
	}
	
	
	
}
